import base from "/@/api/base";
import Axios from "/@/utils/Axios";

export function getAchievementInfo(data: any): Promise<any> {
    return Axios.post(base.getAchievementInfo, data);
}


export function delAchievement(id: string): Promise<any> {
    return Axios.post(base.delAchievement, {id});
}


export function uploadAchievement(params: any): Promise<any> {
    return Axios.post(base.uploadAchievement, params);
}

export function updateAchievement(params: any): Promise<any> {
    return Axios.put(`/backapi/updateAchievement/${params.id}`, params);
}
